package com.xebest.web.service.impl;

import com.xebest.web.mapper.read.XeVenGoodsRejectDetailReadMapper;
import com.xebest.web.service.XeVenGoodsRejectDetailService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @desc:
 * @author: chenjing
 * @createTime: 2017/7/3 0003 下午 7:49
 * @history:
 * @version:v1.0
 */
@Service
public class XeVenGoodsRejectDetailServiceImpl implements XeVenGoodsRejectDetailService {
    private static Logger log = LoggerFactory.getLogger(XeVenGoodsRejectDetailServiceImpl.class);

    @Autowired
    XeVenGoodsRejectDetailReadMapper readMapper;
    /**
     * @Author:chenjing
     * @Description: 根据商品sku和订单编号查询已退货数量
     * @Date:下午 7:49 2017/7/3 0003
     * @params: * @param null
     * @return:
     */
    @Override
    public BigDecimal getCountByOrderIdAndSku(String proSku, String orderId) {
        return readMapper.getCountByOrderIdAndSku(proSku, orderId);
    }
}
